package main.java.maziacs.counters;

import main.java.maziacs.IBoard;
import main.java.maziacs.ITile;


public class Treasure extends Counter {

	public Treasure(IBoard b){
		tile=b.getEndTile();
	}
	
	public Treasure(Bag bag){
		super(bag);
	}
	/**
	 * @uml.property  name="tile"
	 * @uml.associationEnd  multiplicity="(1 1)" inverse="treasure:uml.Tile"
	 */
	private ITile tile;

	/**
	 * Getter of the property <tt>tile</tt>
	 * @return  Returns the tile.
	 * @uml.property  name="tile"
	 */
	public ITile getTile() {
		return tile;
	}

	/**
	 * Setter of the property <tt>tile</tt>
	 * @param tile  The tile to set.
	 * @uml.property  name="tile"
	 */
	public void setTile(ITile tile) {
		this.tile = tile;
	}

	/**
	 * @uml.property  name="number"
	 */
	private Integer number = 1;

	/**
	 * Getter of the property <tt>number</tt>
	 * @return  Returns the number.
	 * @uml.property  name="number"
	 */
	public Integer getNumber() {
		return number;
	}

	/**
	 * Setter of the property <tt>number</tt>
	 * @param number  The number to set.
	 * @uml.property  name="number"
	 */
	public void setNumber(Integer number) {
		this.number = number;
	}

}
